<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/style_01.css" type="text/css" />
<script src="js/createAccount.js"></script>
<title>Create Account</title>
</head>
<body>

	<div id="page" align="center">
		<%@ include file="banner.jsp"%>

		<div id="content" align="center">
			<%@ include file="menuLeft.jsp"%>

			<div id="contenttext">
				<div class="panel" align="justify">
					<span class="orangetitle">
						<c:choose>
					      <c:when test="${status != null}">変更する </c:when>
					      <c:otherwise>登録する   </c:otherwise>
						</c:choose>
					</span>

						<div id="login-form">
							<form action="account" name="account" method="post" 
														onsubmit="return validateForm()">
								<table style="width:550px">
									<tr>
										<td><label >名前<span class="required">*</span></label></td>
										<td>
											<input id="" name="name" size="30"  
												<c:if test="${status != null }">disabled="disabled" value="${account.name}"</c:if>
												type="text"  autofocus="autofocus" />
										</td>
									</tr>
									<tr>
										<td><label >パスワード<span class="required">*</span></label></td>
										<td>
											<input id="" name="password" size="30" type="password" 
													<c:if test="${status != null }"> value="${account.password}"</c:if>/>
										</td>
									</tr>								
									<tr>
										<td><label >メールアドレス<span class="required">*</span></label></td>
										<td>
											<input id="" name="email" size="30" type="text" 
												<c:if test="${status != null }"> value="${account.email}"</c:if>/>
											</td>
									</tr>
									<tr>
										<td></td>
										<td style="text-align: left;"></td>
									</tr>
									<tr>
										<td style="text-align: left;"></td>
										<td style="text-align: right;">
											<input name="commit" type="submit" value="送信 &#187;" /></td>
									</tr>
								</table>
								
								<input type="hidden" name="status" value="${status}">
							</form>
						</div>
				</div>

			</div>
			<%@ include file="footer.jsp"%>
		</div>
	</div>
</body>
</html>